package top.z.work.module.system.api;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import top.z.work.module.system.api.logger.SystemLoggerErrorApi;
import top.z.work.module.system.api.logger.dto.SystemLoggerErrorDto;
import top.z.work.module.system.service.SystemLoggerErrorService;

@Service
public class SystemLoggerErrorApiImpl implements SystemLoggerErrorApi {

    @Resource
    SystemLoggerErrorService systemLoggerErrorService;

    /**
     * 创建API错误日志
     */
    @Override
    public void createLoggerError(SystemLoggerErrorDto data) {
        systemLoggerErrorService.createLoggerError(data);
    }
}
